package domain.shop;

import domain.AbstractEntity;
import domain.cms.CmsAttribute;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

import javax.persistence.Entity;
import javax.persistence.OneToOne;


@Entity
public class PayMethod extends AbstractEntity {

    @OneToOne
    @Cascade(CascadeType.ALL)
    CmsAttribute attribute = new CmsAttribute();
    String name = "Nova";
    String methodDescription = "";

    public PayMethod() {
    }

    public String getMethodDescription() {
        return methodDescription;
    }

    public void setMethodDescription(String methodDescription) {
        this.methodDescription = methodDescription;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setTitle(String title) {
        attribute.setTitle(title);
    }

    public void setKeywords(String keywords) {
        attribute.setKeywords(keywords);
    }

    public void setDescription(String description) {
        attribute.setDescription(description);
    }

    public void setContent(String content) {
        attribute.setContent(content);
    }

    public String getTitle() {
        return attribute.getTitle();
    }

    public java.util.Date getLastEditedDate() {
        return attribute.getLastEditedDate();
    }

    public String getKeywords() {
        return attribute.getKeywords();
    }

    public String getDescription() {
        return attribute.getDescription();
    }

    public String getContent() {
        return attribute.getContent();
    }
}
